const WebRTC = window.WebRTC;

export default {
  data () {
    return {
      netcall: null
    };
  },
  methods: {
    startDeviceAudioOutLocal () {
      this.netcall.startDevice({
        type: WebRTC.DEVICE_TYPE_AUDIO_OUT_LOCAL
      }).catch(() => {
        console.log('播放自己的声音失败');
      });
    },
    stopDeviceAudioOutLocal () {
      this.netcall.stopDevice(WebRTC.DEVICE_TYPE_AUDIO_OUT_LOCAL);
    }
  }
};
